import './../sass/header.scss';
import './../sass/grade.scss';
import './../font/iconfont.css';

import { getStudentName } from './../js/auth.js';

const $ = require('jquery');
const info = location.search.replace('?','').split('&');
const testId = info[0].replace('testId=','');
const score = info[1].replace('score=','');
const time = info[2].replace('time=','');

$('#scoreTotal').text(`${score}分`);
$('#spendtime').text(`${time}`);

// 返回题库
$("#backtests").on('click',function() {
    location.assign('./../html/index.html');
})

// 查看解析
$("#see").on('click',function() {
    location.assign(`./../html/testpaper.html?id=${testId}&status=tested`);
})

getStudentName();
